package cn.kickegg.log.core.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
import lombok.Data;

@Data
@Configuration
@ConditionalOnProperty(name = "log.collector.storage.elasticsearch.enabled", havingValue = "true")
public class ElasticsearchConfiguration {
    private String hosts = "localhost:9200";
    private String username;
    private String password;
    private boolean ssl = false;
    private String certificatePath;
    private int connectionTimeout = 5000;
    private int socketTimeout = 60000;
    private String indexName = "application_logs";
} 